# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-service-identity
_pkgname=service_identity
pkgver=18.1.0
pkgrel=7
pkgdesc='Service identity verification for pyOpenSSL & cryptography.'
url='https://pypi.org/project/service_identity/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-attrs' 'python2-ipaddress' 'python2-pyasn1-modules')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c1556e385035a8d43fd0e3960c0396b9d2536c5e3c7450b3669c8c9b8ff60b6a9d2f0282dc30c1fb46034b4abcb0ff6d74ed79f6bcc33f59035988ccaf3324d2')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

